package com.relax.controller;


import com.relax.feign.pay.PayFeignSercie;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {

    @DubboReference
    private PayFeignSercie payFeignSercie;

    @RequestMapping("/order")
    public Object order(Integer id) {
        String pay = payFeignSercie.pay(id);
        return pay;
    }
}
